/**
 * Copyright (c) 2011 Nokia Corporation.
 */

import QtQuick 1.0

Image {
    id: box
    width: 120; height: 120; smooth: true;
    property bool selected: false;
    property string selected_image: ""
    property string unselected_image: ""
    property string disabled_image: ""
    fillMode: Image.Stretch

    function select() {
        box.source = selected_image;
        box.selected = true;
    }

    function unselect() {
        box.source = unselected_image;
        box.selected = false;
    }

    function disable() {
        box.source = disabled_image;
        box.selected = false;
    }
}

